<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增资产包名称</title>
<style type="text/css">
    .searchArea .fieldBox .label{width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;text-align:center;}
</style>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
<div class="Wrapper">
	<div class="searchArea">
            <form id="archivesInfo_form">
                <div class="fieldset1 clearFix">
                    <div class="fieldBox col_100">
                    	<span class="requiredSymbol">*</span>
	                    <div class="label">资产包名称:</div>
	                    <div class="field">
	                        <input name="assPackNm" id="assPackNm" type="text" class="ui-textbox" value="" validate="{required:true, maxlength:100}">
	                        <input name="flag" id="flag" type="hidden" class="ui-textbox" value="${flag}" >
	                    </div>
	                </div>
                 </div>
            </form>
     </div>
</div>


<script type="text/javascript">
$(function(){
	//加载数据
	$('#archivesInfo_form').ligerForm({
	        validate : true
	});
    SET_popupIframeHeight();
});

//定义父级调用事件
frameElement.dialog.onOk = function () {
	check();
}
           
frameElement.dialog.onCancel = function () {
     frameElement.dialog.close();
}

function check(){
	if (!$("#archivesInfo_form").valid()) {
    	top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO , SQ_type: "warning" });
    	return false; //验证不通过，不执行以下代码
    }
	if($("#assPackNm").val() == ""){
		top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO , SQ_type: "warning" });
    	return false; //验证不通过，不执行以下代码
	}
	var assPackNm = $("#assPackNm").val();
	parent.$("#assPackName").val(assPackNm);
	parent.add($("#flag").val());
	frameElement.dialog.close();
}

</script>



</body>
</html>
